package componentManager;
import org.w3c.dom.Node;




public class Noeud {
	
	private int id;//identifiant du noeud
	private String path;//chemin du noeud � partir de la racine
	private String label;//nom de la balise
	private Node noeud;
	private int idNoeudpere;
	private int idDoc;
	private int nbreTerme;
	
	public Noeud() {
		super();
	}
	
	public Noeud(int id, String path, String label, Node noeud,int idNoeudpere,int idDoc) {
		super();
		this.id = id;
		this.path = path;
		this.label = label;
		this.noeud = noeud;
		this.idNoeudpere = idNoeudpere;
		this.idDoc = idDoc;
	}
	

	public void incrementNbreTerme(){
		this.nbreTerme++;
	}
	
	public int getNbreTerme() {
		return nbreTerme;
	}

	public void setNbreTerme(int nbreTerme) {
		this.nbreTerme = nbreTerme;
	}

	public int getIdNoeudpere() {
		return idNoeudpere;
	}

	public void setIdNoeudpere(int idNoeudpere) {
		this.idNoeudpere = idNoeudpere;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Node getNoeud() {
		return noeud;
	}

	public void setNoeud(Node noeud) {
		this.noeud = noeud;
	}

	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	
	public String getLabel() {
		return label;
	}
	
	public void setLabel(String label) {
		this.label = label;
	}
	
	
	public int getIdDoc() {
		return idDoc;
	}

	public void setIdDoc(int idDoc) {
		this.idDoc = idDoc;
	}

	public String toString(){
		return this.id+" "+this.label +" "+this.path+" nbreTerme:"+this.nbreTerme;
	}

}
